import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;


public class Main {

	public static void main(String[] args) {

		try{
			while(true)
			{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));

			String line = br.readLine(); 
			Calculadorr calc = new Calculadorr();
			System.out.println(calc.play(line));
			
			}
		}
		
		catch(IOException e){

			System.out.println("error:" + e.getMessage());
		}
	}
}